<form id="pagerForm" method="post" action="{:U($module_name.'/'.$action_name."?model=".$model)}">
    <input type="hidden" name="pageNum" value="{$pageNum}" />
    <input type="hidden" name="numPerPage" value="{$numPerPage}" />
    <input type="hidden" name="orderField" value="{$orderField}" />
    <input type="hidden" name="orderDirection" value="{$orderDirection}" />
</form>
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{:U('Custom/index')}" method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li style="width:170px;">
				<label style="width:50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:80px;"/>
			</li>
			<li style="width:100px;">
			<select name="sfield" class="combox">
				<option value="all" {if $sfied=='all'}selected="selected"{/if}>全部</option>
				<option value="id" {if $sfied=='id'}selected="selected"{/if}>ID</option>
				<option value="userid" {if $sfied=='userid'}selected="selected"{/if}>提问人ID</option>
			</select>
			<input type="hidden" name="sfield_name" value="id,user_id,mobile,tel,realname,company" />
			</li>
			<li style="width:150px;">
                <label style="width:60px;">问题类型：</label>
                <select name="problem_type" class="combox"> 
                    <option value="all" {if $problem_type=='all'||empty($problem_type)}selected="selected"{/if}>全部</option>
                    <option value="1" {if $problem_type=='1'}selected="selected"{/if}>帐号类</option>
                    <option value="2" {if $problem_type=='2'}selected="selected"{/if}>下单类</option>
                    <option value="3" {if $problem_type=='3'}selected="selected"{/if}>财务类</option>
                </select>
            </li>
			<li style="width:150px;">
                <label style="width:60px;">是否解决</label>
                <select name="status" class="combox"> 
                    <option value="all" {if $solve=='all'||empty($solve)}selected="selected"{/if}>全部</option>
                    <option value="1" {if $solve=='1'}selected="selected"{/if}>已答</option>
                    <option value="2" {if $solve=='2'}selected="selected"{/if}>未答</option>
                </select>
            </li>
                <li style="padding-top:0;"><div class="buttonActive"><div class="buttonContent"><button type="submit">搜索</button></div></div></li>
            </ul>
        </div>
    </form>
</div>
<div class="pageContent">

 <table class="list" width="100%" targetType="navTab" asc="asc" desc="desc" layoutH="94">
            <thead>
	            <tr>
	                <th width="40" > ID</th>
	                <th>问题</th>
	                <th>提问人ID</th>
					<th>附件路径</th>
	                <th>是否解决</th>
					<th>问题类型</th>
	                <th>时间</th>
	                <th>操作</th>
	            </tr>
	            </thead>
	            <tbody>
		            <volist name="list" id="vo">
			            <tr target="sid_dv" rel="{$vo['id']}">
			                <td align="center">{$vo['id']}</td>
			                <td>{$vo['contents']}</td>
			                <td><a title="查看" target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$vo['id']}" href="{:U('User/detail',array('id'=>$vo['userid']))}">{$vo['userid']}</a></td>
							<td><a href="">{$vo['attachments_url']}</a></td>
			                {if $vo['status'] == 0}<td style="color:red">{$status[$vo['status']]}</td>{else}<td>{$status[$vo['status']]}</td>{/if}
							<td>{$type[$vo['tid']]}</td>
			                <td>{$vo['time']|date="Y-m-d H:m:s",###}</td>
			                {if $vo['status'] == 0}
								<td><a href="index.php?m=Custom&a=edit&id={$vo['id']}" rel="qids{$vo['id']}" target="dialog" width="700" height="600">解答</a> {if !empty($vo['attachments_url'])}| <a href="http://www.o2o.com/{$vo['attachments_url']}">下载附件</a>{/if}</td>
							{else}
								<td><a href="index.php?m=Custom&a=sel&id={$vo['id']}" rel="qids{$vo['id']}" target="dialog" width="700" height="600">追加</a> {if !empty($vo['attachments_url'])}| <a href="http://www.o2o.com/{$vo['attachments_url']}">下载附件</a>{/if}</td>
							{/if}
			            </tr>
	            	</volist>
            	</tbody>
        </table>
<div class="panelBar">
	<div class="pages">
		<span>显示</span>
		<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
			<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
			<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
			<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
			<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
			<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			<option value="500" {if $numPerPage==500}selected="selected"{/if}>500</option>
		</select>
		<span>条，共{$totalCount}条 </span>
	</div>
	<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
</div>
</div>
